package com.xzy.mapper;

import com.xzy.pojo.VoteUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface VoteUserMapper {
    public VoteUser selectVoteUserByName(String username);
    public int insertVoteUser(@Param("username")String username,@Param("password")String password);
    public List<VoteUser> selectVoteUserPage(@Param("begin")int begin,@Param("size")int size);
//    投票修改用户的投票id，需要用户名，题目id
    public int updateVoteTopicId(Map<String,Object> map);
//    用户权限，身份修改
    public int updateVoteByUsernameYes(String username);
    public int updateVoteByUsernameNo(String username);
}

